package com.glsc.ngateway.platform.repo.costallocation;

import com.glsc.ngateway.platform.domain.costallocation.HisBusiSystemInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface HisBusiSystemInfoRepo extends JpaRepository<HisBusiSystemInfo, Long>, JpaSpecificationExecutor<HisBusiSystemInfo> {
    @Query(value = "select t from HisBusiSystemInfo t where t.id in :ids ")
    List<HisBusiSystemInfo> queryByids(Set<Long> ids);

    @Query(value = "select t from HisBusiSystemInfo t where t.id = :id ")
    HisBusiSystemInfo queryByid(Long id);
}
